-- GENERATED SPELL FOR [Dalaran Spellscribe] --


function spell0_1920(pUnit, Event) --@Freeze,n/a--
pUnit:FullCastSpellOnTarget(5276,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1920', 19000, 1)
end

function spell1_1920(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_1920', 0, 1)
end

function spell2_1920(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1920', 7000, 1)
end

function Sorts_1920(pUnit, Event)
local choix_sorts_1920 = math.random(0, 2)
if choix_sorts_1920 == 0 then
pUnit:RegisterEvent('spell0_1920', 1, 1)
end
if choix_sorts_1920 == 1 then
pUnit:RegisterEvent('spell1_1920', 1, 1)
end
if choix_sorts_1920 == 2 then
pUnit:RegisterEvent('spell2_1920', 1, 1)
end
end

function mob1920_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1920', math.random(1500, 3000), 1)
end

function mob1920_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1920_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1920_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1920, 1, 'mob1920_Action')
RegisterUnitEvent(1920, 2, 'mob1920_Leave')
RegisterUnitEvent(1920, 3, 'mob1920_Kill')
RegisterUnitEvent(1920, 4, 'mob1920_Die')
